<html>
<head><meta charset="utf-8"><title>When does `QPath::TypeRelative` occur? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/When.20does.20.60QPath.3A.3ATypeRelative.60.20occur.3F.html">When does `QPath::TypeRelative` occur?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="233658071"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/When%20does%20%60QPath%3A%3ATypeRelative%60%20occur%3F/near/233658071" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cameron Steffen <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/When.20does.20.60QPath.3A.3ATypeRelative.60.20occur.3F.html#233658071">(Apr 08 2021 at 14:07)</a>:</h4>
<p>Wondering when will a <code>QPath::TypeRelative</code> occur when observing the HIR in a late lint pass? Would it always be a generic type like <code>&lt;T&gt;::Output</code>? The reason I ask is I want to know when to (not) use <code>LateContext::qpath_res</code>.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>